@tailwind base;
@tailwind components;
@tailwind utilities;

/* 自定义tailwind的类*/
@layer components {
  .btn-radio {
    @apply border-dashed border-2 cursor-pointer border-primary/50;
    @apply rounded-md flex items-center justify-center py-3 px-2;
  }

  .test {
    height: calc(100vh - theme(spacing.12));
    background-color: theme("colors.white");
    border-radius: theme("borderRadius.lg");
    padding: theme("spacing.6");
    box-shadow: theme("boxShadow.xl");
  }
}

:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif, BlinkMacSystemFont, Helvetica Neue, Arial,
    PingFang SC, PingFang TC, PingFang HK, Microsoft Yahei, Microsoft JhengHei;
  font-size: 16px;
  line-height: 24px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

//-------------------reset

// 预设样式表@tailwind base 与 antd-button背景色有冲突
.ant-btn-primary {
  @apply bg-primary;
}

// 重置输入控件的focus阴影
.ant-input:focus,
.ant-select-selector,
.ant-input-number,
.ant-input-affix-wrapper {
  box-shadow: none !important;
}

.ant-btn {
  box-shadow: none;
}

.my-masonry-grid {
  display: -webkit-box;
  /* Not needed if autoprefixing */
  display: -ms-flexbox;
  /* Not needed if autoprefixing */
  display: flex;
  margin-left: -15px;
  /* gutter size offset */
  width: auto;
}

.my-masonry-grid_column {
  padding-left: 15px;
  /* gutter size */
  background-clip: padding-box;
}

/* Style your items */
.my-masonry-grid_column > div {
  /* change div to reference your elements you put in <Masonry> */
  margin-bottom: 15px;
}
